﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WMILK_MVC4.App_Start
{
    public class AccountHelper
    {
        public static Models.Enums.LanguageMode SelectedLanguage
        {
            get
            {
                var obj = HttpContext.Current.Session["__SELECTEDLANGUAGE"];

                if (obj != null)
                {
                    return (Models.Enums.LanguageMode)obj;
                }

                return Models.Enums.LanguageMode.English;
            }
            set
            {
                HttpContext.Current.Session["__SELECTEDLANGUAGE"] = (int)value;
            }
        }
    }
}